<?php
class sourceEntity
{
	/*返回公告列表*/
	public static function GetGongGaoList()
	{
        return $_ENV['db']->fetchAll("SELECT * from source where type ='gonggao' ");
	}
	public static function GetRow($sid)
	{
		$perm = $_ENV['db']->fetch("SELECT * FROM `source` WHERE `sid` = '{$sid}'");
        if (!$perm) return '找不到指定客户信息';
		return $perm;
	}
	//根据ID删除
	public static function DeteteByID($sid)
	{
		return DeteteTable('source',array('sid' => $sid));
	}
}
?>